jQuery(function($) {
	
	$("#gridCustomer").jqGrid({
		url:'customer/customer.action',
		datatype: "json",
		height: 'auto',
		rowNum: 20,
		rowList: [10,20,30],
	   	colNames:['Inv No','用户名', '姓名', '邮箱','手机','状态','IP','最后登录时间','餐币'],
	   	colModel:[
	   		{name:'id',index:'id', width:60, sorttype:"int"},
	   		{name:'username',index:'username', width:90, sorttype:"date", formatter:"date"},
	   		{name:'name',index:'name', width:100},
	   		{name:'email',index:'email', width:80, align:"right",sorttype:"float", formatter:"number"},
	   		{name:'phone',index:'phone', width:80, align:"right",sorttype:"float"},		
	   		{name:'locked',index:'locked', width:80,align:"right",sorttype:"float"},		
	   		{name:'loginIP',index:'loginIP', width:150, sortable:false},	
	   		{name:'lastLoginTime',index:'lastLoginTime', width:150, sortable:false}	
	   		{name:'integralSum',index:'integralSum', width:150, sortable:false}	
	   	],
	   	pager: "#pgridCustomer",
	   	viewrecords: true,
	   	sortname: 'username',
	   	caption: "客户列表"
	});

});
